package com.lipl.base.javase.designpattern.decoartor.V2;

/**
 * @Auther: 15541
 * @Date: 2020/12/16 14:50
 * @Description:
 */
public abstract class BattercakeDecotator extends Battercake{

    private Battercake battercake;

    public BattercakeDecotator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getMsg() {
        return this.battercake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}

